<?php
// Connect to an ODBC database using driver invocation
$dsn = 'mysql:dbname=zinec;host=127.0.0.1';
$user = 'root';
$password = '';

try {
    $conn = new PDO($dsn, $user, $password);
//    echo 'Connection to db is OK';
} catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
}

?>

